#include <stdio.h>

int main(void)

{
	int n,a=0,b;
	scanf("%d",&n);
	while( a <= n)
	{
		a++;
	if(n%a ==0)
	{
		b= n/a;
		printf("%3d * %3d = %3d \n",a,b,n);
	}
	}
	return 0;
}
